home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2004 April
/
CMCD0404.ISO
/
Software
/
Shareware
/
Programare
/
sharp
/
wwwSharp_setup.exe
/
{app}
/
Examples
/
Browser
/
index.hta
< prev
Wrap
Text File
|
1999-07-29
|
876b
|
37 lines
<html>
<head>
<TITLE>HTML Application Example</TITLE>
<HTA:APPLICATION ID="HTAEx"
APPLICATIONNAME="HTAEx"
ICON="e.ico"
WINDOWSTATE="normal">
</head>
<body>
<span id=AddressBar style="overflow: none">
<span id=AddText>Address</span>
<input type=text value="http://www.microsoft.com" id=TheAddress style="width: expression(document.body.clientWidth - AddText.offsetWidth - AddGo.offsetWidth - 45)">
<input type=button value="Go" id=AddGo onclick="navigate()"><br>
<span>
<br>
<iframe src="http://www.microsoft.com" id=TheFrame style="width: 100%; height: 85%"></iframe>
<script language=JScript>
function navigate() {
document.all.TheFrame.src = TheAddress.value;
}
function clickShortcut() {
if (window.event.keyCode == 13) {
navigate()
}
}
TheAddress.onkeypress = clickShortcut;
</script>
</body>
</html>